package Composite_Pattern.Software;

import Composite_Pattern.Education.AbstractOffice;

import java.util.ArrayList;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Parts extends AbstractSoft{

    private String name;

    public Parts(String name) {
        this.name = name;
    }

    @Override
    public AbstractSoft getChild(int i) {
        return null;
    }
    @Override
    public void add(AbstractSoft soft) {

    }

    @Override
    public void Open() {
        System.out.println("*****单元"+name);
    }
    //    @Override
//    public AbstractOffice getChild(int i) {
//        return (AbstractOffice)abstractOffices.get(i);
//    }
//
//    @Override
//    public void add(AbstractOffice office) {
//        abstractOffices.add(office);
//    }
}
